#!/usr/bin/env python
# encoding: utf-8
import xadmin
from users.models import VerifyCode
from xadmin import views


class BaseSetting(object):
    enable_themes = True
    use_bootswatch = True


class GlobalSettings(object):
    site_title = "HF商城后台"
    site_footer = "版权所有@HF商城"


class VerifyCodeAdmin(object):
    list_display = ['code', 'email', "send_time"]


xadmin.site.register(VerifyCode, VerifyCodeAdmin)
xadmin.site.register(views.BaseAdminView, BaseSetting)
xadmin.site.register(views.CommAdminView, GlobalSettings)
